﻿<%@ Page Title="邮件" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MailInbox.aspx.cs" Inherits="KPI.MailInbox" %>

<%@ Register Src="Controls/Messages.ascx" TagName="Messages" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="pagetitle">
		<span>收件箱 </span>
	</div>
	<uc3:Messages ID="Messages1" runat="server" />
	<div class="buttonscontainer">
		<asp:Button ID="btnDelete" Text="删除选中的邮件" CssClass="button" runat="server" OnClientClick="return confirm('确定要删除吗？');" OnClick="btnDelete_Click" />
	</div>
	<div class="pagingcontainer">
		<asp:Literal ID="lTotalRecords" runat="server" Text="0" Mode="PassThrough"></asp:Literal>
		&nbsp;&nbsp;
		<asp:Literal ID="lPageIndex" runat="server" Text="1"></asp:Literal>
		/
		<asp:Literal ID="lPageCount" runat="server" Text="1"></asp:Literal>
		&nbsp;&nbsp;
		<asp:LinkButton ID="lbtnPrePage" runat="server" Enabled="false" OnClick="lbtnPaging_Click" Text="上一页" CommandArgument="pre"></asp:LinkButton>
		<asp:LinkButton ID="lbtnNextPage" runat="server" Enabled="false" OnClick="lbtnPaging_Click" Text="下一页" CommandArgument="next"></asp:LinkButton>
		&nbsp;&nbsp;
		<asp:TextBox ID="txtGotoPage" runat="server" Width="20" MaxLength="2"></asp:TextBox>页
		<asp:LinkButton ID="lbtnGotoPage" runat="server" Text="跳转" OnClick="lbtnPaging_Click" CommandArgument="goto"></asp:LinkButton>
	</div>
	<div class="listdatacontainer">
		<asp:ListView ID="listMails" runat="server" DataKeyNames="MailID" OnItemDataBound="listMails_ItemDataBound">
			<LayoutTemplate>
				<table cellpadding="5" cellspacing="0" class="listtable">
					<thead>
						<tr>
							<th>
								<asp:CheckBox ID="chbSelectAll" runat="server" CssClass="chball" />
							</th>
							<th style="width: 300px;">
								标题
							</th>
							<th style="width: 180px;">
								发件人
							</th>
							<th style="width: 340px;">
								内容
							</th>
							<th style="width: 120px;">
								发送时间
							</th>
							<th style="width: 40px;">
								状态
							</th>
							<th style="width: 30px;">
							</th>
							<th style="width: 80px;">
							</th>
						</tr>
					</thead>
					<tbody>
						<tr id="itemPlaceholder" runat="server" />
					</tbody>
				</table>
			</LayoutTemplate>
			<ItemTemplate>
				<tr id="rowItem" class="rowitem" runat="server">
					<td>
						<asp:CheckBox ID="chbSelect" runat="server" CssClass="chbitem" />
					</td>
					<td>
						<asp:Label ID="lMailSubject" runat="server"></asp:Label>
					</td>
					<td>
						<asp:Literal ID="lMailSender" runat="server" Mode="PassThrough"></asp:Literal>
					</td>
					<td>
						<asp:Literal ID="lMailContent" runat="server" Mode="PassThrough"></asp:Literal>
					</td>
					<td>
						<asp:Literal ID="lMailSentTime" runat="server" Mode="PassThrough"></asp:Literal>
					</td>
					<td>
						<asp:Label ID="lMailIsRead" runat="server"></asp:Label>
					</td>
					<td>
						<asp:Image ID="imgMailAtt" runat="server" CssClass="mailatticon" ToolTip="有附件" ImageUrl="~/images/clear.gif" Width="11" Height="16"></asp:Image>
					</td>
					<td>
						<asp:HyperLink ID="hlMailDetail" runat="server" Text="查 看"></asp:HyperLink>
					</td>
				</tr>
			</ItemTemplate>
		</asp:ListView>
	</div>
</asp:Content>
